CC=g++

#CFLAGS=-Wall $(shell sdl-config --cflags)
#LDFLAGS=-Wall $(shell sdl-config --libs) -lGL -lGLU -lglut

CFLAGS= -I/home/benjamin/MESA7/include -Wno-deprecated
#CFLAGS= -I/home/benjamin/MESA7/include
LDFLAGS= -L/home/benjamin/MESA7/lib -lGL -lGLU -lglut -L/usr/X11R6/lib -lX11 -lSDL 
EXEC= risk

SRC= $(wildcard *.cpp)
OBJ=$(SRC:.cpp=.o)

all: $(EXEC)

risk : $(OBJ)
	$(CC) -o $@ $^ $(LDFLAGS)

%.o : %.cpp 
	$(CC) -o $@ -c $< $(CFLAGS)

clean :
	rm -f $(OBJ) $(EXEC) *~